package ch.pizzapp.kurier.data;

import java.util.ArrayList;
import java.util.List;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class InfoData implements Parcelable {

	@JsonProperty("address1")
	String address1;
	@JsonProperty("address2")
	String address2;
	@JsonProperty("city")
	String city;
	@JsonProperty("date")
	String date;
	@JsonProperty("fax")
	String fax;
	@JsonProperty("gratisnummer")
	String gratisnummer;
	@JsonProperty("open")
	String open;
	@JsonProperty("opentime")
	String opentime;
	@JsonProperty("status")
	String status;
	@JsonProperty("tel")
	String tel;
	@JsonProperty("zip")
	String zip;
	@JsonProperty("times")
	List<CharSequence> times;

	public String getAddress1() {
		return this.address1;
	}

	public void setAddress1(String address1) {
		this.address1 = address1;
	}

	public String getAddress2() {
		return this.address2;
	}

	public void setAddress2(String address2) {
		this.address2 = address2;
	}

	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDate() {
		return this.date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getGratisnummer() {
		return this.gratisnummer;
	}

	public void setGratisnummer(String gratisnummer) {
		this.gratisnummer = gratisnummer;
	}

	public String getOpen() {
		return this.open;
	}

	public void setOpen(String open) {
		this.open = open;
	}

	public String getOpentime() {
		return this.opentime;
	}

	public void setOpentime(String opentime) {
		this.opentime = opentime;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getZip() {
		return this.zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public List<CharSequence> getTimes() {
		return this.times;
	}

	public void setTimes(List<CharSequence> times) {
		this.times = times;
	}

	protected InfoData(Parcel in) {
		address1 = in.readString();
		address2 = in.readString();
		city = in.readString();
		date = in.readString();
		fax = in.readString();
		gratisnummer = in.readString();
		open = in.readString();
		opentime = in.readString();
		status = in.readString();
		tel = in.readString();
		zip = in.readString();
		times = new ArrayList<CharSequence>();
		in.readList(times, CharSequence.class.getClassLoader());
	}

	public InfoData() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(address1);
		dest.writeString(address2);
		dest.writeString(city);
		dest.writeString(date);
		dest.writeString(fax);
		dest.writeString(gratisnummer);
		dest.writeString(open);
		dest.writeString(opentime);
		dest.writeString(status);
		dest.writeString(tel);
		dest.writeString(zip);
		dest.writeList(times);
	}

	public static final Parcelable.Creator<InfoData> CREATOR = new Parcelable.Creator<InfoData>() {
		public InfoData createFromParcel(Parcel in) {
			return new InfoData(in);
		}

		public InfoData[] newArray(int size) {
			return new InfoData[size];
		}
	};
}
